package com.openbravo.pos.panels.link;

import java.awt.BorderLayout;

import cn.ekuma.data.ui.swing.AbstractDTOTableModel;
import cn.ekuma.epos.datalogic.I_DataLogicSales;

import com.openbravo.pos.panels.QuickTimerFilter;
import com.openbravo.pos.panels.event.TimeCycleChangedListener;

public abstract class AbstractTimeCycleBaseBeanLinkTablePanel<T,K,I> extends AbstractBaseLinkTablePanel<T,K,I>  implements  TimeCycleChangedListener{

	protected QuickTimerFilter timerFilter;
	
	public AbstractTimeCycleBaseBeanLinkTablePanel(I_DataLogicSales dlSales,
			AbstractDTOTableModel<T> tableModel) {
		super(dlSales, tableModel);
		timerFilter=new QuickTimerFilter();
		timerFilter.setDefineSelected(QuickTimerFilter.TIMERCYCLETYPE_Week);
		timerFilter.addTimeCycleChangedListener(this);
		panel.add(timerFilter, BorderLayout.WEST);
	}
}
